home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Delphi Magazine Collection 2001
/
Delphi Magazine Collection 20001 (2001).iso
/
DISKS
/
Issue24
/
tiptrix
/
LISTING3.PAS
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Pascal/Delphi Source File
|
1997-07-21
|
322 b
|
16 lines
FUNCTION get_word_upto(wrkstr : STRING; delim : CHAR) :
STRING;
VAR
i : INTEGER;
found : BOOLEAN;
BEGIN
found := FALSE;
i := 1;
REPEAT
INC(i);
IF wrkstr[i] = delim THEN found := TRUE;
IF i > LENGTH(wrkstr) THEN found := TRUE;
UNTIL found;
result := COPY(wrkstr, 1, i - 1);
END;